package com.my.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.entity.NightSpot;
import com.my.mapper.NightSpotMapper;
import com.my.service.NightSpotService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class NightSpotServiceImpl extends ServiceImpl<NightSpotMapper, NightSpot> implements NightSpotService {

    @Override
    public IPage<NightSpot> getList(IPage<NightSpot> page, NightSpot nightSpot) {
        return baseMapper.getList(page, nightSpot);
    }

    @Override
    public List<NightSpot> getApiList(Long userId, Integer userType, Long classId, boolean confirm) {
        return baseMapper.getApiList(userId, userType, classId, confirm);
    }

    @Override
    public List<Map<String, Long>> getNotSpotUserId() {
        return baseMapper.getNotSpotUserId();
    }

}
